const { Controller } = require('egg');

class HomeController extends Controller {
  async index() {
    const { ctx } = this;
    let list = [{
      id: 1,
      name: "1"
    }]
    // ctx.apiSuccess(list)
    ctx.apiFail(list)
  }
}

module.exports = HomeController;
